
import request from '@/utils/request'
//列表
export function getPageList(query) {
  return request({
    url: '/system/visitControl/getPageList',
    method: 'get',
    params: query
  })
}
//详情
export function getInfo(query) {
  return request({
    url: '/system/visitControl/getInfo',
    method: 'get',
    params: query
  })
}
// 新增
export function add(data) {
  return request({
    url: '/system/visitControl/add',
    method: 'post',
    data
  })
}// 新增
export function edit(data) {
  return request({
    url: '/system/visitControl/edit',
    method: 'post',
    data
  })
}
// 删除
export function deletes(query) {
  return request({
    url: '/system/visitControl/delete',
    method: 'post',
    method: 'get',
    params: query
  })
}
// 启停
export function updateStatus(data) {
  return request({
    url: '/system/visitControl/updateStatus',
    method: 'post',
    data
  })
}

